Add Foreign Keys

To add a foreign key, click the New Foreign Key button from the toolbar and drag and drop a field from the child table to the parent table. To show/hide the linked name label, simply check/uncheck the Show name option in the Properties pane.

When you move your mouse over a foreign key connecter, the border of the parent and the child tables turn to green and blue respectively. Also, the referenced fields and the referencing fields are highlighted.

The pop-up menu options of the foreign key in canvas include:

Option

Description

Design Relation

Edit the foreign key in a table designer. The options in the designer depend on the diagram database type you are chosen.

Cardinality on table_name1

Set the cardinality on table_name1: None, One and Only One, Many, One or Many, Zero or One, Zero or Many.

Cardinality on table_name2

Set the cardinality on table_name2: None, One and Only One, Many, One or Many, Zero or One, Zero or Many.

Add Vertex

Add a vertex on a foreign key connecter.

Delete Vertex

Delete a vertex on a foreign key connecter.

Delete All Vertices

Delete all vertices on a foreign key connecter.

Paste

Paste the content from the clipboard into the diagram.

Select All Relations

Select all foreign keys in the diagram.

Delete

Delete a foreign key from both diagram and model.

Color

Change the color of the foreign key.